package de.dubiel.plung.shared.dao;

import java.io.Serializable;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

@Entity
public class User implements Serializable {
    private static final long serialVersionUID = 893791937910943218L;
    @Id
    private String id;
    private String name;
    private int won = 0;
    private int lost = 0;
    private long score = 0;
    private String localPaddleColor = "#fff";
    private String remotePaddleColor = "#fff";
    private String ballColor = "#fff";
    private String middleLineColor = "#fff";
    private String fieldColor = "#000";
    private String userListToken = "";

    public String getFieldColor() {
        return fieldColor;
    }

    public void setFieldColor(String fieldColor) {
        this.fieldColor = fieldColor;
    }

    public User() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        if (name == null)
            return "";
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemotePaddleColor() {
        return remotePaddleColor;
    }

    public void setRemotePaddleColor(String remotePaddleFillColor) {
        this.remotePaddleColor = remotePaddleFillColor;
    }

    public String getBallColor() {
        return ballColor;
    }

    public void setBallColor(String ballFillColor) {
        this.ballColor = ballFillColor;
    }

    public String getMiddleLineColor() {
        return middleLineColor;
    }

    public void setMiddleLineColor(String middleLineColor) {
        this.middleLineColor = middleLineColor;
    }

    public String getLocalPaddleColor() {
        return localPaddleColor;
    }

    public void setLocalPaddleColor(String localPaddleColor) {
        this.localPaddleColor = localPaddleColor;
    }

    public String getUserListToken() {
        return userListToken;
    }

    public void setUserListToken(String userListToken) {
        this.userListToken = userListToken;
    }

    public int getWon() {
        return won;
    }

    public void setWon(int won) {
        this.won = won;
    }

    public int getLost() {
        return lost;
    }

    public void setLost(int lost) {
        this.lost = lost;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }
}